From 1be9d941db393814d53f2a5cb672b06e169f7679 Mon Sep 17 00:00:00 2001 From: Stephen Eglen Date: Thu, 26 Sep 2002 15:50:59 +0000 Subject: [PATCH] (iswitchb-completions): Test that iswitchb-common-match-string is a string, before printing common completions. --- lisp/iswitchb.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/iswitchb.el b/lisp/iswitchb.el index 0b283d0ae77..d24f737851b 100644 --- a/lisp/iswitchb.el +++ b/lisp/iswitchb.el @@ -1260,7 +1260,8 @@ Modified from `icomplete-completions'." ;; put in common completion item -- what you get by ;; pressing tab - (if (> (length iswitchb-common-match-string) (length name)) + (if (and (stringp iswitchb-common-match-string) + (> (length iswitchb-common-match-string) (length name))) (concat open-bracket-determined (substring iswitchb-common-match-string (length name)) -- 2.30.2